{extend name="main"}
{block name="style"}
<style type="text/css">
	.content img{max-width: 100% !important;}
	.content table{max-width: 100% !important;}
	.content{word-wrap:break-word;overflow: auto;}
	@media (max-width: 576px){
		html{min-width: auto;}
		.container-xl{
			max-width: 100%;
			min-width: auto;
		}
		.p-xs-3{padding: 1rem !important;}
		.px-xs-0{padding-left: 0 !important;padding-right: 0 !important;}
	}
</style>
{/block}
{block name="header"}
{eq name=":request()->isMobile()" value="0"}
{include file="module/top_nav" container="container-xl"/}
{include file="module/header_concise"/}
{/eq}
{/block}
{block name="body"}
{notempty name="Find"}
<div class="container-xl py-3">
	<div class="flex text-grey flex-center overflow-auto text-nowrap">
		<div>
			<a href="/" class="el-link el-link--info text-grey">首页</a>
		</div>
		{notempty name="$Find.cate"}
		<div class="px-2"><i class="el-icon-arrow-right"></i></div>
		{notempty name="$Find.cate.alias"}
		<div><a href="/article/type/{$Find.cate.alias}.html" class="el-link el-link--info text-grey">{$Find.cate.title}</a></div>
		{else/}
		<div>{$Find.cate.title}</div>
		{/notempty}
		{/notempty}
		<div class="px-2"><i class="el-icon-arrow-right"></i></div>
		<div class="text-dark">{$Find.title}</div>
	</div>
</div>
<div class="container-xl p-5 bg-white mb-3 p-xs-3">
	<div class="px-5 px-xs-0">
		{eq name=":request()->isMobile()" value="0"}
		<h3>{$Find.title}</h3>
		<div class="flex pt-3 text-grey flex-v-center">
			<div class="flex-1">文章来源：{$Find.source}</div>
			<div class="px-5"><i class="el-icon-time mr-1"></i>{$Find.start_time|date="Y-m-d"}</div>
			<div class="pl-5"><i class="el-icon-view mr-1"></i>{$Find.view}</div>
		</div>
		<div class="border-top border-grey my-4"></div>
		{/eq}
		<div class="content" id="ArticleContent">{$Find.content|raw}</div>
		{eq name=":request()->isMobile()" value="0"}
		{notempty name="$Find.qrcode"}
		<div class="text-center pt-5">
			<img src="{$Find.qrcode}" alt="" height="150">
			<p class="text-grey small">微信扫一扫打开</p>
		</div>
		{/notempty}
		{notempty name="$Find.extension"}
		<div class="border-top pt-4 mt-4 text-grey border-grey">
			{notempty name="$Find.prev"}
			<div class="py-1"><a href="/article/content/{$Find.prev.id}.html" class="text-truncate el-link el-link--info text-grey">上一条： {$Find.prev.title}</a></div>
			{/notempty}
			{notempty name="$Find.next"}
			<div class="py-1"><a href="/article/content/{$Find.next.id}.html" class="text-truncate el-link el-link--info text-grey">下一条： {$Find.next.title}</a></div>
			{/notempty}
		</div>
		{/notempty}
		{/eq}
	</div>
</div>
<el-image ref="ElImageiewer" :src="contentImgSrc" :preview-src-list="contentImgList" style="width: 0px;height: 0px;"><div slot="error"></div></el-image>
{else/}
<div class="empty-text py-5">无此文章</div>
{/notempty}
{/block}
{block name="footer"}
{eq name=":request()->isMobile()" value="0"}
{include file="module/footer"/}
{include file="module/login"/}
{/eq}
{/block}
{block name="script"}
<script type="text/javascript">
	var vm=new Vue({
		el:'#app',
		data:{
			view:XYBase.view,
			loginTabs:XYBase.loginTabs,
			userInfo:UserInfo,
			feedback:XYBase.feedback,
			activeName: 'home',
			contentImgSrc:'',
			contentImgList:[],
			search:{
				key:'',
				type:1
			},
		},
		watch:{
		    view:XYBase.viewWatch,
		    loginTabs:XYBase.loginTabsWatch,
		},
		created(){
			XYBase.created(this);
		},
		methods:XYBase.methods({
		})
	});
	$(function(){
		$('#ArticleContent img').each(function(){
			$(this).addClass('pointer');
			vm.contentImgList.push($(this).attr('src'));
		})
		$('#ArticleContent img').bind('click',function(){
			vm.contentImgSrc=$(this).attr('src');
			vm.$refs.ElImageiewer.showViewer=true;
		})
	});
</script>
{/block}